package types

type CreateBomReq struct {
	Code           string `json:"code"`
	Name           string `json:"name"`
	OrgSpuID       int64  `json:"org_spu_id"`
	OrgSpuName     string `json:"org_spu_name"`
	ProductionLine string `json:"production_line,optional"`
	SpuID          int64  `json:"spu_id"`
	SpuName        string `json:"spu_name"`
	Describe       string `json:"description,optional"`
}

type BomListReq struct {
	Name           string `json:"name,optional"`
	OrgSpuName     string `json:"org_spu_name,optional"`
	ProductionLine int    `json:"production_line,optional"`
	SpuName        string `json:"spu_name,optional"`
	PageBaseReq
}

type BomListResp struct {
	List []*BomList `json:"list"`
	PageBaseResp
}

type BomList struct {
	BomType        int64  `json:"bom_type"`
	Code           string `json:"code"`
	CreatedAt      int64  `json:"created_at"`
	Name           string `json:"name"`
	OrgSpuName     string `json:"org_spu_name"`
	ProductionLine string `json:"production_line"`
	SpuName        string `json:"spu_name"`
}
